﻿using Sharp.WeShare.Common;
using Sharp.WeShare.Pay;
using System;

namespace MpTest
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
       var aa =     PayApi.UnifiedOrder(new UnifiedReq
           {
               appid = WxConfig.APPID,
               attach = "123",
               body="商品",
               mch_id= WxConfig.MCHID,
               notify_url="http://www.baidu.com",
               out_trade_no=Utils.GetTimeStamp().ToString(),
               product_id="1",
               trade_type=TradeType.NATIVE, 
               total_fee=1
           }, WxConfig.PAYKEY);
        }
    }
}